﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>点餐管理平台</title>
<link href="/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="/lib/css/system.css" rel="stylesheet" type="text/css" /> 
<script src="/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script src="/lib/ligerUI/js/plugins/ligerTab.js"></script>
<script type="text/javascript">
            var tab = null;
            var accordion = null;
            $(function ()
            {
				//布局
				$("#layout1").ligerLayout({ leftWidth: 100, height: '100%',heightDiff:-0,space:4, onHeightChanged: f_heightChanged });	
				var height = $(".l-layout-center").height();	
				//Tab
				$("#framecenter").ligerTab({ height: height });	
				//面板
				$("#accordion1").ligerAccordion({ height: height - 24, speed: null });	
				$(".l-link").hover(function ()
				{
					$(this).addClass("l-link-over");
				}, function ()
				{
					$(this).removeClass("l-link-over");
				});
					
				tab = $("#framecenter").ligerGetTabManager();
				accordion = $("#accordion1").ligerGetAccordionManager();
				$("#pageloading").hide();
				//确认是否退出系统
				window.onbeforeunload = function(event){
					if(document.all){
						var n = window.event.screenX - window.screenLeft;   
						var b = n > document.documentElement.scrollWidth-20;
						if(b || window.event.clientY < 0 || window.event.altKey){
							window.event.returnValue="请确认是否退出系统";
						}
					}
					//针对火狐
					if(typeof(event) != "undefined" && event != null){
						event.returnValue="请确认是否退出系统";
					}
				};	
            });
            function f_heightChanged(options)
            {
                if (tab)
                    tab.addHeight(options.diff);
                if (accordion && options.middleHeight - 24 > 0)
                    accordion.setHeight(options.middleHeight - 24);
            }
            function f_addTab(tabid,text, url)
            { 
                tab.addTabItem({ tabid : tabid,text: text, url: url });
            } 
</script>
<style type="text/css"> 
    body,html{height:100%;}
    body{ padding:0px; margin:0;   overflow:hidden;}  
    .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
    .l-link2{text-decoration:none; color:white; margin-left:2px;margin-right:2px;}
    .l-layout-top{background:#102A49; color:White;}
    .l-layout-bottom{ background:#E5EDEF; text-align:center;}   
    /* .l-link{ display:block; line-height:22px; height:22px; padding-left:16px;border:1px solid white; margin:4px;} */
    .l-link{ display:block; height:26px; line-height:26px; padding-left:18px; font:"宋体";font-size:12px;text-decoration:none; color:#3f3f3f;background-image:url('/lib/images/sys/001.png');background-repeat:no-repeat;background-position:9px 8px;}
    /* .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;} */ 
    .l-link-over{ color:#60a522; background-image:url('/lib/images/001.png');background-repeat:no-repeat;}
    .l-winbar{ background:#2B5A76; height:30px; position:absolute; left:0px; bottom:0px; width:100%; z-index:99999;}
    .space{ color:#E7E7E7;}
    /* 顶部 */ 
    .l-topmenu{ margin:0; padding:0; height:25px; line-height:25px; background:url('/lib/images/sys/top.png') repeat-x bottom;  position:relative; border-top:1px solid #1D438B; color:#000000 }
    .l-topmenu-logo{ color:#000000; padding-left:35px; line-height:26px;background:url('/lib/images/sys/topicon.gif') no-repeat 10px 5px;}
    .l-topmenu-welcome{  position:absolute; height:24px; line-height:24px;  right:30px; top:2px;color:#000000;}
    .l-topmenu-welcome a{ color:#000000; text-decoration:none} 
 </style>
</head>
<body style="padding:0px;background:#EAEEF5;">
<div id="pageloading"></div>
<div id="topmenu" class="l-topmenu">
	<div class="l-topmenu-logo">点餐系统管理平台</div>
	<div class="l-topmenu-welcome"> 
		<a href="#" class="l-link2">欢迎你，${session.sys_user.name!}</a> 
		<span class="space">|</span> 
		<a href="javascript:f_addTab('pwd','修改密码','/sys/password')" class="l-link2">修改密码</a> 
		<span class="space">|</span> 
		<a href="/sys/logout" class="l-link2" >退出</a> 
	</div>
</div>
<div id="layout1" style="width:99.2%; margin:0 auto; margin-top:0px; ">
	<div position="left"  title="导航菜单" id="accordion1">	
	
<!--生成菜单-->	

<%for(p_menu in parent_menu!){%>		
	<div title="${p_menu.name}"> 
		<div style=" height:7px;"></div>			 	
			<%for(c_menu in children_menu!){%>	
				<%if(c_menu.sys_module_id == p_menu.id){%>
				<a class="l-link" href="javascript:f_addTab('${c_menu.id}','${c_menu.name}','${c_menu.url}')">${c_menu.name}</a> 
				<%}%>	
			<%}%>			
	</div>		
<%}%> 
<div title="系统帮助">
  <div style=" height:7px;"></div>
        <a class="l-link" href="javascript:f_addTab('0','帮助','http://www.baidu.com')">百度</a> 
  </div> 
</div>
	<div position="center" id="framecenter">
		<div tabid="home" title="我的主页" style="height:300px" >
			<iframe frameborder="0" name="home" id="home" src="/sys/welcome"></iframe>
		</div>
	</div>
</div>
<!-- <div  style="height:32px; line-height:32px; text-align:center;"> Copyright &copy; 2013 SKG同盟兄弟友情出品</div>
<div style="display:none"></div> -->
</body>
</html>
